﻿

namespace Sripirom.EntityT4.Core.Domain
{
    public static class RepositoryFactory
    {
        private static IRepositoryFactory _repositoryFactory = null;

        public static T GetRepository<T>()
        {
            return _repositoryFactory.GetDefaultRepository<T>();
        }
         

        public static void InitialFactory(IRepositoryFactory repositoryFactory)
        {
            _repositoryFactory = repositoryFactory;
        }


    }
}
